﻿@model  AnhDuyShop.Models.Member

@{ 
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_LayoutPage_Admin.cshtml";
}

<h2>Create New User</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

        <div class="row">
						<div class="col-sm-12">
							<!-- start: TEXT FIELDS PANEL -->
							<div class="panel panel-default">
								<div class="panel-heading">
									<i class="fa fa-external-link-square"></i>
									Text Fields
									<div class="panel-tools">
										<a class="btn btn-xs btn-link panel-collapse collapses" href="#">
										</a>
										<a class="btn btn-xs btn-link panel-config" href="#panel-config" data-toggle="modal">
											<i class="fa fa-wrench"></i>
										</a>
										<a class="btn btn-xs btn-link panel-refresh" href="#">
											<i class="fa fa-refresh"></i>
										</a>
										<a class="btn btn-xs btn-link panel-expand" href="#">
											<i class="fa fa-resize-full"></i>
										</a>
										<a class="btn btn-xs btn-link panel-close" href="#">
											<i class="fa fa-times"></i>
										</a>
									</div>
								</div>
								<div class="panel-body">
                                    <table class="table-responsive">
                                        <tr class="btn-lg">
                                            <td colspan="2" class="col-sm-3"><b><font color="red">@ViewBag.TaiKhoanDaTonTai</font></b></td>
                                        </tr>
                                        <tr class="btn-lg">
                                            <td class="col-sm-3">Email </td>
                                            <td class="col-sm-10">@Html.TextBoxFor(model => model.UserEmail, new { @class = "form-control", placeholder = "Your Email", required = "required" })</td>
                                            <td class="col-sm-10">@Html.ValidationMessageFor(model => model.UserEmail)</td>
                                        </tr>


                                        <tr class="btn-lg">
                                            <td class="col-sm-3">Password </td>
                                            <td class="col-sm-10">@Html.PasswordFor(model => model.Password, new { @class = "form-control", placeholder = "Your Password", required = "required" }) </td>
                                            <td class="col-sm-10">@Html.ValidationMessageFor(model => model.Password)</td>
                                        </tr>

                                        <tr class="btn-lg">
                                            <td class="col-sm-3">Privilege </td>
                                            <td class="col-sm-10">@Html.DropDownListFor(model => model.Privilege, (IEnumerable<SelectListItem>)ViewBag.ListPrivilege) </td>
                                            <td class="col-sm-10">@Html.ValidationMessageFor(model => model.Privilege)</td>
                                        </tr>

                                        <tr class="btn-lg">
                                            <td class="col-sm-3">Active </td>
                                            <td class="col-sm-10">@Html.EditorFor(model => model.Active) </td>
                                            <td class="col-sm-10">@Html.ValidationMessageFor(model => model.Active)</td>
                                        </tr>
                                        <tr class="btn-lg">
                                            <td><b>Info Member</b></td>
                                        </tr>
                                        <tr class="btn-lg">
                                            <td class="col-sm-3">Fax </td>
                                            <td class="col-sm-10">@Html.TextBox("tbFax", null, new { @class = "form-control", placeholder = "Your Fax" })</td>
                                        </tr>
                                        <tr class="btn-lg">
                                            <td class="col-sm-3">Number Phone </td>
                                            <td class="col-sm-10">@Html.TextBox("tbNumberPhone", null, new { @class = "form-control", placeholder = "Your Number Phone" })</td>
                                        </tr>
                                        <tr class ="btn-lg">
                                            <td class="col-sm-3">Number Card Member </td>
                                            <td class="col-sm-10">@Html.TextBox("tbNumberCardMember", null, new { @class = "form-control", placeholder = "Number Card Member" })</td>
                                        </tr>
                                        <tr class="btn-lg">
                                            <td class="col-sm-3">Company </td>
                                            <td class="col-sm-10">@Html.TextBox("tbCompany", null, new { @class = "form-control", placeholder = "Your Company" })</td>
                                        </tr>
                                        <tr class="btn-lg">
                                            <td class="col-sm-3">Representative </td>
                                            <td class="col-sm-10">@Html.TextBox("tbRepresentative", null, new { @class = "form-control", placeholder = "Your Representative" })</td>
                                        </tr>
                                        <tr class="btn-lg">
                                            <td class="col-sm-3">Address Company </td>
                                            <td class="col-sm-10">@Html.TextBox("tbAddressCompany", null, new { @class = "form-control", placeholder = "Your Address Company" })</td>
                                        </tr>
                                        <tr class="btn-lg">
                                            <td class="col-sm-3">Tax Code </td>
                                            <td class="col-sm-10">@Html.TextBox("tbTaxCode", null, new { @class = "form-control", placeholder = "Your Tax Code" })</td>
                                        </tr>
                                        <tr class="btn-lg">
                                            <td class="col-sm-3">
                                                <button data-style="expand-right" class="btn btn-teal ladda-button">
                                                    <span class="ladda-label"> Create </span>
                                                    <i class="fa fa-arrow-circle-right"></i>
                                                    <span class="ladda-spinner"></span>
                                                    <span class="ladda-spinner"></span>
                                                </button>
                                            </td>
                                        </tr>
                                    </table>
								</div>
							</div>
							<!-- end: TEXT FIELDS PANEL -->
						</div>
					</div>
}

<div>
    @Html.ActionLink("Back To List", "Index", null ,new { @class = "label label-sm label-danger" })
</div>
